﻿#include "mychndlgbtn.h"
#include <QPushButton>
#include <QTimer>
#ifdef _WIN32
#pragma execution_character_set("utf-8")
#endif
MyChnDlgBtn::MyChnDlgBtn(QWidget *parent)
	: QDialogButtonBox(parent)
{
// 	QTimer::singleShot(0, this, [this]()
// 	{
// 		this->button(QDialogButtonBox::Ok)->setText(tr("确定"));
// 		this->button(QDialogButtonBox::Cancel)->setText(tr("取消"));
// 	});
}

MyChnDlgBtn::~MyChnDlgBtn()
{

}


void MyChnDlgBtn::showEvent(QShowEvent *event)
{
	this->button(QDialogButtonBox::Ok)->setText(tr("确定"));
	this->button(QDialogButtonBox::Cancel)->setText(tr("取消"));
}